package jou.cs.service;

import jou.cs.entity.TUser;
import org.springframework.data.domain.Page;

import java.util.Map;

public interface UserService {
    // add
    void addUser(TUser user);
    // delete by id
    void deleteUser(Long id);
    // update
    void updateUser(TUser user);
    // get user by id
    Map<String, Object> getUserById(Long id);

    // page query
    Page<TUser> getUserByPage(int page);

    Long login(String username, String password);
}
